package com.woniu.form;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.sql.Time;
import java.time.LocalDateTime;
@Data
@ApiModel("更改店铺数据")
public class ModifyStoreForm implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 商铺名字
     */
    @ApiModelProperty("商铺名字")
    @Length(min = 1, max = 10, message = "店铺名称长度在1-10位之间")
    @NotNull(message = "店铺名称不能为空")
    private String storeName;

    /**
     * 订餐电话
     */
    @ApiModelProperty("订餐电话")
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;


    /**
     * 商铺简介
     */
    @ApiModelProperty("商铺简介")
    @Length(min = 1, max = 200, message = "商铺简介长度在1-10位之间")
    @NotNull(message = "商铺简介不能为空")
    private String storeIntro;


}
